package com.xdcplus.web.common.pojo.dto.alarm;

import com.xdcplus.mp.domain.oracle.Base;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 设备告警码表(ToolAlarmCode)表更新入参DTO类
 * 
 * @author bullion.yan
 * @since 2024-06-05 16:16:14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "")
@SuppressWarnings("serial")
public class ToolAlarmCodeDTO extends Base implements Serializable {
    private static final long serialVersionUID = 109192247016506452L;

    @ApiModelProperty("告警组ID")
    @NotNull(message = "告警组ID不能为空")
    private Long groupIdFk;

    @ApiModelProperty("是否报修")
    @NotNull(message = "是否报修不能为空")
    private Long isFault;
    @ApiModelProperty("故障部门")
    private Long faultDepartmentIdFk;

    @ApiModelProperty("故障类型(设备故障、机械故障、电气故障等)")
    private String faultType;

    @ApiModelProperty("告警内容")
    private String alarmContent;

    @ApiModelProperty("告警等级")
    @NotEmpty(message = "告警等级不能为空")
    private String alarmGrade;

    @ApiModelProperty("告警码")
    @NotEmpty(message = "告警码不能为空")
    private String alarmCode;

}
